var $=function(node){
return document.getElementById(node);
}
function $(objId){
return document.getElementById(objId);
}

function inst() {
}

function GetRequest(Url,act,GetFunction){
if(window.ActiveXObject){
var xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}else{
var xmlHttpRequest = new XMLHttpRequest();
}
xmlHttpRequest.onreadystatechange = function(){
if(xmlHttpRequest.readyState == 4){
if(xmlHttpRequest.status == 200){
GetFunction(xmlHttpRequest.responseText);
}else{
GetFunction(404);
}
}
}
xmlHttpRequest.open("post",'?Act='+act+"&t="+Math.random(),true);
xmlHttpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlHttpRequest.send(Url);
}
function tk(){
$('ff').style.display='none';
$('bg').style.display='none';
}
function eq(act,oa) {
SendUrl = "Act="+act;
if(oa==""){oa="|";}
rs=oa.split("|");
for(eg=0; eg<rs.length; eg++) {
ji = rs[eg];
if(ji!=""){
if($(ji)==null){alert("未提交:"+ji+"元素不存在!");return false;}
SendUrl += "&"+ji+"="+ encodeURIComponent($(ji).value);
}
}
GetRequest(SendUrl,act,function(GetText){
if(GetText == 404){
alert("通讯失败:"+SendUrl);
return false;
}else{
if(GetText.indexOf('<table')!=-1){
$('wt').innerHTML=GetText;
}else{
alert(GetText);
}
}
});
}
function uo(Num,Pag) {
if ($("page")!=null) $("page").value = Pag;
eq("list","di|page");
}
function bc(act,oa) {
$('qu').value=$('o'+oa).value;
$('sm').value=$('i'+oa).value;
eq(act,'qu|sm');
}
function bi() {
if (window.confirm("确定要清空嘛（本页字段别名需要全部重新填写）？")==true){
eq('xb','xb|');eq('duan','|');
}
}